package team.yidong.fenda.service;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import team.yidong.fenda.entity.Answer;

import java.text.ParseException;
import java.util.List;

/**
 * Created by xuanlong on 2017/10/31.
 */
public interface AnswerService {
    JSONArray findAnswerByQuestionId(Integer questionId);

    Answer findById(Integer answerId);

    void updateAnswer(Answer answer);

    String openAnswerImg(Integer imgId);

    void addQuestionAnswer(String sysUserName, Integer questionId, String answerContentText, List<String> stringList) throws ParseException;
}
